module.exports = {
  mode: 'production',
  devtool: 'source-map',
  entry: {
    http: './src/http/index.js',
    message: './src/message/index.js',
    authtree: './src/authtree/index.js',
    eventbus: './src/eventbus/index.js',
    aliyun_oss: './src/aliyun_oss/index.jsx',
  },
  output: {
    filename: '[name]/[name].min.js',
  },
  module: {
    rules: [{
      test: /\.(jsx|js)$/,
      loader: 'babel-loader'
    }, {
      test: /\.css$/,
      exclude: /node_modules/,
      loader: 'style-loader!css-loader'
    }, {
      test: /\.less$/,
      exclude: /node_modules/,
      loader: 'style-loader!css-loader!less-loader'
    }]
  },
}